package cz.muni.fi.pb162.project.geometry;


/**
 * Class for measuring measurable objects
 * 
 * @author Martin Pasko
 * @version 15_10_2012
 */
public class Gauger
{

/**
 * Prints toString information on any measurable object and its perimeter.
 * @param m measurable object
 */

    public static void printMeasurement(Measurable m){
        System.out.println(m);
        System.out.println("Perimeter: "+m.getLength());
    }

/**
 * Prints toString information on any solid object, its perimeter and area.
 * @param s solid object 
*/

    public static void printMeasurement(Solid s){
        printMeasurement((Measurable)s);
        System.out.println("Area: "+s.getArea());
    }
}
